<strong>Redigera sida <?php echo $page;?></strong>
<br/>
<br/>
<?php if(strlen($message)>0) print '<p>'.$message.'</p>'; ?>
<form method="post" action="">
	
	<ul id="wysihtml5-toolbar" style="display: none;" class="wysi_toolbar">
		<li data-wysihtml5-command="bold"></li>
		<li data-wysihtml5-command="italic"></li>

		<!-- Some wysihtml5 commands require extra parameters -->
		<li data-wysihtml5-command="foreColor" data-wysihtml5-command-value="red"></li>
		<li data-wysihtml5-command="foreColor" data-wysihtml5-command-value="green"></li>
		<li data-wysihtml5-command="foreColor" data-wysihtml5-command-value="blue"></li>

		<!-- Some wysihtml5 commands like 'createLink' require extra paramaters specified by the user (eg. href) -->
		<li data-wysihtml5-command="createLink"></li>
		<div data-wysihtml5-dialog="createLink" style="display: none;">
			<label>
				Link: <input data-wysihtml5-dialog-field="href" value="http://" class="text">
			</label>
			<li data-wysihtml5-dialog-action="save"></li>
			<li data-wysihtml5-dialog-action="cancel"></li>
		</div>
	</ul>
	<textarea id="wysihtml5-textarea" name="wysi" class="wysi" autofocus><?php echo $html;?></textarea>
<br/>
<input type="submit" name="update" value="Spara ändringar"/>
</form>

<link href="/css/wysi.css" rel="stylesheet" type="text/css"/>
<script src="/js/wysi.min.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
	var editor = new wysihtml5.Editor("wysihtml5-textarea", { // id of textarea element
	  toolbar:      "wysihtml5-toolbar", // id of toolbar element
	});
</script>